package com.abc.bean;

import com.abc.easyclaim.CaseListActivity;
import com.abc.easyclaim.CommonEditActivity;
import com.abc.easyclaim.MainApplication;
import com.abc.easyclaim.MetroMenuActivity;

import android.content.Context;
import android.content.Intent;
import android.view.ContextMenu;

public class Editor {
	private String title ;//编辑页面的标题头
	private String item; //编辑项
	private String value;//编辑值
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getItem() {
		return item;
	}
	public void setItem(String item) {
		this.item = item;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Editor(String title, String item, String value) {
		super();
		this.title = title;
		this.item = item;
		this.value = value;
	}
	
	public void toEditPage(Context context){
		Intent intent = new Intent(context,CommonEditActivity.class);
        intent.putExtra("title", getTitle());
        intent.putExtra("item",getItem());
        context.startActivity(intent);
	}
	
}
